using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using Husb.Data;
using Husb.Util;
using CentralOffice.Admin.Data;
using CentralOffice.Admin.BusinessActions;
using AddressTable = CentralOffice.Admin.Data.AddressDataSet.addressDataTable;
using AddressRow = CentralOffice.Admin.Data.AddressDataSet.addressRow;
namespace CentralOffice.WebClient.desktop.address
{
    public partial class detail : PageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                string strId = Request.QueryString["id"].Trim();
                AddressRow addressrow = CentralOffice.Admin.BusinessActions.Address.GetById(new Guid(strId));
                if (addressrow.Table.Rows.Count > 0)
                {
                    LbMobil.Text = addressrow["MobilHome"].ToString().Trim();
                    LbMobil1.Text = addressrow["MobilHome"].ToString().Trim();
                    LbEmail.Text = addressrow["Email"].ToString().Trim();
                    LbEmail1.Text = addressrow["Email"].ToString().Trim();
                    LbQQ.Text = addressrow["QqNo"].ToString().Trim();
                    LbQQ1.Text = addressrow["QqNo"].ToString().Trim();
                    LbMsn.Text = addressrow["MSN"].ToString().Trim();
                    LbMsn1.Text = addressrow["MSN"].ToString().Trim();
                    LbDeptTel.Text = addressrow["TelNoDept"].ToString().Trim();
                    LbDeptTel1.Text = addressrow["TelNoDept"].ToString().Trim();
                    LbDeptFax.Text = addressrow["FaxNoDept"].ToString().Trim();
                    LbDeptFax1.Text = addressrow["FaxNoDept"].ToString().Trim();
                    LbHomeTel.Text = addressrow["TelNoHome"].ToString().Trim();
                    LbHomeTel1.Text = addressrow["TelNoHome"].ToString().Trim();
                    LbNo.Text = addressrow["PsnNo"].ToString().Trim();
                    LbName.Text = addressrow["PsnName"].ToString().Trim();
                    LbSex.Text = addressrow["sex"].ToString().Trim();
                    LbBirth.Text = addressrow["BirthDay"].ToString().Trim();
                    LbNick.Text = addressrow["NickName"].ToString().Trim();
                    LbMinistration.Text = addressrow["Ministration"].ToString().Trim();
                    LbMate.Text = addressrow["Mate"].ToString().Trim();
                    LbChile.Text = addressrow["Child"].ToString().Trim();
                    LbDeptName.Text = addressrow["DeptName"].ToString().Trim();
                    LbDeptAddr.Text = addressrow["AddDept"].ToString().Trim();
                    LbDeptPost.Text = addressrow["PostNoDept"].ToString().Trim();
                    LbHomeAddr.Text = addressrow["AddHome"].ToString().Trim();
                    LbHomePost.Text = addressrow["PostNoHome"].ToString().Trim();
                    LbNote.Text = addressrow["Notes"].ToString().Trim();
                }
            }
        }
    }
}
